﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Property;
using Property.Common;

namespace Property.Samples.Concepts
{
    public static class WrappedConstructor<TConcept,TDelegate> where TConcept:Concept
    {
        //compiling constructor calling delegate
        public static readonly Singleton<TDelegate> New = new Singleton<TDelegate>(()=>Constructor.Compile<TDelegate>(WrappedConcept<TConcept>.Type));
    }
}